home *** CD-ROM | disk | FTP | other *** search
- Path: news.ios.com!holovacs
- From: holovacs@ios.com (Jay Holovacs)
- Newsgroups: comp.lang.c++
- Subject: Re: A LINKed LIST Question
- Date: 18 Apr 1996 16:30:55 GMT
- Organization: Internet Online Services
- Message-ID: <4l5qnv$a7o@news.ios.com>
- References: <4l4m21$sr1@falcon.ccs.uwo.ca>
- NNTP-Posting-Host: styx.ios.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Declare NodeList a friend class.
-
- Sharon Wang (swang1@julian.uwo.ca) wrote:
- : I have the following def'n
-
- : class Node {
- : ItemType item1; // ItemType define
- : ItemType item2;
- : ...
- : public:
- : functions on item;
- : };
-
- : class NodeList {
- : Node N;
- : Node* FLink;
- : Node* BLink;
- : public:
- : functions on Node;
- : };
-
- : However, I can't access the members of Node in the list since
- : they are "private". How can I get arount this WIHTOUT using
- : access functions in class Node.
-
- : Sharon
- : <swang1@julian.uwo.ca>
-
-
- --
- -----------------------------------------------------------------------
- Jay Holovacs <holovacs@ios.com>
- -----------------------------------------------------------------------
- PGP Key fingerprint = AC 29 C8 7A E4 2D 07 27 AE CA 99 4A F6 59 87 90
-